package bookticket.crm.user.dao;


import java.util.List;
import java.util.Map;

import bookticket.crm.user.entity.UserEntity;
import bookticket.crm.vip.entity.VipEntity;


public interface UserDao {

	int register(UserEntity entity);

	int findOne();
	
	UserEntity findByPhoneAndPassword(UserEntity entity);
	
	List<UserEntity> findAll(Map<String, Object> pageMap);
	
	int getTotalCounter();
	
	/**
	 * 按phone查找用户信息
	 * @param phone
	 * @return
	 */
	UserEntity findByPhone(String phone);
	
	/**
	 * 用户充值后修改用户列表
	 * @param entity
	 * @return
	 */
	int updateByPhone(UserEntity userEntity);

	/**
	 * 获取用户会员级别
	 * @return
	 */
	int findUserVipId();
	
	/**
	 * 查找所有会员信息
	 * @param pageMap
	 * @return
	 */
	List<VipEntity> findVipAll();
	
	int findTotalRechargeAmount();

}
